package com.videoweb.controller;

import com.videoweb.annotation.Anonymous;
import com.videoweb.utils.AjaxResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController

public class TestController {


    @RequestMapping("/data")
    public AjaxResult forData(){
//        AjaxResult ajax = AjaxResult.success();
        AjaxResult ajaxResult =  AjaxResult.success("发送请求成功");
        return ajaxResult;
    }


}
